<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
{% for i in date %}
    <form action="" method="post">
        {% csrf_token %}
        <input type="hidden" name="id" value="{{ i.id }}">
    </form>
{% endfor %}

{% for i in date %}
<form action="" method="post">
        {% csrf_token %}
    处方名称:<input type="text" name="cname" value="{{ listl.cname }}" placeholder="{{ i.cname }}">
    <br>
    诊断结果:<input type="text" name="result" value="{{ listl.result }}" placeholder="{{ i.result }}">
    <br>
    患者:<input type="text" name="hname" value="{{ listl.hname }}" placeholder="{{ i.hname }}">
    <br>
    问诊医生:<select name="doctor" id="">
        <option value="" selected>请选择医生</option>
        {% for i in listl %}
            <option value="{{ i.id }}">{{ i.truename }}</option>
        {% endfor %}
    </select>
    <br>
    <input type="submit" value="修改">
</form>
{% endfor %}
</body>
</html>